<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
// API 模板文件，可以复制
namespace api\resource\controller;

use think\Db;
use think\Request;
use think\Validate;
use cmf\controller\RestBaseController;

class Biao4Controller extends RestBaseController
{


    public function one($data)
    {

        //查 这个表的数据
        @$new_data = $data[0]['content'];
        if (empty($new_data)) {
            return '';
        }
       $html = '
               <div style="width: 650px;margin: 0 auto;">
                    <div style="font-size: 16px;font-weight: 600;margin-bottom: 15px;">三、研究开发人员情况表</div>
                    <table border="1" cellspacing="0px" cellpadding="5px" width="650">
                        <thead style="font-weight: 600;text-align: center">
                            <tr>
                                <td colspan="2" width="325px">项目</td>
                                <td width="325px">人数</td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td width="50" rowspan="8">职工总数('.@$new_data->text1.')</td>
                                <td width="275">职称：高级职称</td>
                                <td width="325">'.@$new_data->text2.'</td>
                            </tr>
                            <tr>
                                <td>中级职称</td>
                                <td>'.@$new_data->text3.'</td>
                            </tr>
                            <tr>
                                <td>低级职称</td>
                                <td>'.@$new_data->text4.'</td>
                            </tr>
                            <tr>
                                <td>学历：博士</td>
                                <td>'.@$new_data->text5.'</td>
                            </tr>
                            <tr>
                                <td>硕士</td>
                                <td>'.@$new_data->text6.'</td>
                            </tr>
                            <tr>
                                <td>本科</td>
                                <td>'.@$new_data->text7.'</td>
                            </tr>
                            <tr>
                                <td>大专</td>
                                <td>'.@$new_data->text8.'</td>
                            </tr>
                            <tr>
                                <td>其他</td>
                                <td>'.@$new_data->text9.'</td>
                            </tr>
                            <tr>
                                <td colspan="3" style="text-align: center;font-weight: 600">工程中心研究开发人员情况</td>
                            </tr>
                            <tr>
                                <td width="400" rowspan="8">专职从事研究开发人员数量('.@$new_data->text10.')</td>
                                <td>职称：高级职称</td>
                                <td>'.@$new_data->text11.'</td>
                            </tr>
                            <tr>
                                <td>中级职称</td>
                                <td>'.@$new_data->text12.'</td>
                            </tr>
                            <tr>
                                <td>低级职称</td>
                                <td>'.@$new_data->text13.'</td>
                            </tr>
                            <tr>
                                <td>学历：博士</td>
                                <td>'.@$new_data->text14.'</td>
                            </tr>
                            <tr>
                                <td>硕士</td>
                                <td>'.@$new_data->text15.'</td>
                            </tr>
                            <tr>
                                <td>本科</td>
                                <td>'.@$new_data->text16.'</td>
                            </tr>
                            <tr>
                                <td>大专</td>
                                <td>'.@$new_data->text17.'</td>
                            </tr>
                            <tr>
                                <td>其他</td>
                                <td>'.@$new_data->text18.'</td>
                            </tr>
                            <tr>
                                <td width="400" rowspan="8">兼职从事研究开发人员数量('.@$new_data->text19.')</td>
                                <td>职称：高级职称</td>
                                <td>'.@$new_data->text20.'</td>
                            </tr>
                            <tr>
                                <td>中级职称</td>
                                <td>'.@$new_data->text22.'</td>
                            </tr>
                            <tr>
                                <td>低级职称</td>
                                <td>'.@$new_data->text23.'</td>
                            </tr>
                            <tr>
                                <td>学历：博士</td>
                                <td>'.@$new_data->text24.'</td>
                            </tr>
                            <tr>
                                <td>硕士</td>
                                <td>'.@$new_data->text25.'</td>
                            </tr>
                            <tr>
                                <td>本科</td>
                                <td>'.@$new_data->text26.'</td>
                            </tr>
                            <tr>
                                <td>大专</td>
                                <td>'.@$new_data->text27.'</td>
                            </tr>
                            <tr>
                                <td>其他</td>
                                <td>'.@$new_data->text28.'</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
        ';

            return $html;

    }



}
